﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lion.WeiXin.Core.Models;
namespace Lion.WeiXin.Core.Data
{
   public interface IEmployee
    {
      
       /// <summary>
       /// 是否存在该记录
       /// </summary>
       bool Exists(string userName);
       /// <summary>
       /// 增加一条数据
       /// </summary>
       int Add(Models.EmployeeModel model);
       /// <summary>
       /// 更新一条数据
       /// </summary>
       bool Update(Models.EmployeeModel model);
       /// <summary>
       /// 删除一条数据
       /// </summary>
       bool Delete(int AID);
       bool DeleteList(string AIDlist);
       /// <summary>
       /// 得到一个对象实体
       /// </summary>
       Models.EmployeeModel GetModel(int AID);
       Models.EmployeeModel GetModel(string userName);
       /// <summary>
       /// 获得数据列表
       /// </summary>
       List<Models.EmployeeModel> GetList(string strWhere);
       /// <summary>
       /// 获得前几行数据
       /// </summary>
       List<Models.EmployeeModel>  GetList(int Top, string strWhere, string filedOrder);
       int GetRecordCount(string strWhere);
       List<Models.EmployeeModel> GetListByPage(string strWhere, string orderby, int startIndex, int endIndex);
    }
}
